function login_form_submit() {
    $.ajax({
        cache: !1,
        type: "POST",
        url: "/grt/nologin/loginVerify",
        data: $("#login_form").serialize(),//form表单中的所有属性
        beforeSend: function() {
            $("#login_btn").html("登录中..."),
            $("#login_btn").attr("disabled", "disabled")
        },
        success: function(data) {
        	var result;//多加个判断，这里有个奇葩的bug，同样的代码，有时候data为对象有时候为字符串
        	if(typeof(data) == String){
        		result = JSON.parse(data);
        	} else{
        		result = data;
        	}
        	
        	if(result.successed == true){
        		var url = "/grt/admin/";
        		location.href = url;
        	}else{
        		$("#login-form-tips").html("账号或者密码错误，请重新输入").show(500);
        	}
        },
        complete: function() {
            $("#login_btn").html("登录"),
            $("#login_btn").removeAttr("disabled")
        }
    })
}
